package pro.survey.analyzer.data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Adrian
 */
public class Series {
    
    private String title;
    private List<String> items;
    private List<Double> values;

    public Series() {
        this.items = new ArrayList<String>();
        this.values = new ArrayList<Double>();
    }
    
    public List<String> getItems() {
        return items;
    }

    public List<Double> getValues() {
        return values;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }
    
    /**
     *
     * @return boolean
     */
    public boolean validate() {
        if (items.size() != values.size())
            return false;
        return true;
    }
}
